package polymorphic.exer1;

/**
 * Created with IntelliJ IDEA.
 * ClassName: GeometricObject
 * Package: polymorphic.exer1
 * Description:
 * User: fzykd
 *
 * @Author: LQH
 * Date: 2023-11-22
 * Time: 20:59
 */

public class GeometricObject {

    protected String color;

    //权重
    protected double weight;


    protected GeometricObject(String color, double weight) {
        this.color = color;
        this.weight = weight;
    }

    //求面积
    public double findArea() {
        return 0.0;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }
}
